h = [2, 6, 88, 2, 9]
min_h = h[0]
for i in range(len(h)):
    if h[i] < min_h:
        min_h = h[i]



max_h = h[0]
for i in range(len(h)):
    if h[i] > max_h:
        max_h = h[i]

for i in range(len(h)):
    if h[i] == min_h:
        h[i] = max_h
print(h)


h = [58, 123, 74, 85, 6]
s = 0
for i in range(len(h)):
    s = s + h[i]
print(s)


s = 0
for i in range(len(h)):
    if h[i] % 2 == 0:
        s = s + h[i]
print(s)


h = [58, 123, 74, 85, 6, 123, 123, 4, 123]
max_h = h[0]
for i in range(len(h)):
    if h[i] > max_h:
        max_h = h[i]

s = 0
for i in range(len(h)):
    if h[i] == max_h:
        s = s + 1

print(s)

h = [58, 123, 74, 83, 6, 123, 123, 4, 123]
s = 0
for i in range(len(h)):
    if h[i] % 10 == 2:
        s = s + 1

print(s)


h = [58, 123, 74, 83, 6, 123, 123, 4, 123]
s = 0
for i in range(len(h)):
    if (h[i] % 10) % 2 == 0:
        s = s + 1

print(s)


// от 20 до 50 четные
#include <iostream>
using namespace std;

int main()
{
    //int n;
   //cout << n;
    for (int i = 20; i <= 50; i = i + 2 )
    {
        
        cout << i << "\n";
    }
    return 0;
}

// от 1 до 100 (3 и 5 f и b)
for i in range(1, 101):
    if i % 3 == 0 and i % 5 == 0:
        print("FizzBuzz")
    elif i % 3 == 0:
        print("Fizz")
    elif i % 5 == 0:
        print("Buzz")
    else:
        print(i)
    i += 1


n = int(input())
h = [1]
for i in range(1, n):
    x = h[i - 1] + 5
    h.append(x)
print(h)

